<?php defined('SYSPATH') OR die('No direct access allowed.');
?>
<?php
foreach($forums as $key =>$forum) {
    foreach($forum["Template"] as $key => $subforum) {
    ?>
    <div id="template" class="mainbox">
	    <div class="forumlist">
			<div><H3 ><strong> <?php echo  $subforum->for_name;
		        ?></strong></H3>
			</div>
		</div>
		<div class="forumlistTitle">
			<div class="itemone">版块</div>
			<div class="item">主题</div>
			<div class="item">帖数</div>
			<div class="itemlast">最后发表</div>
		</div>
    <?php foreach($forum["SubTemplate"] as $key => $subforum) {
            ?>
		<div class="forumlistItem">
			 <div class="itemone">
			 <?php echo html::anchor('Thread/ThreadList/' . $subforum->id, $subforum->for_name, array('class' => 'moderators'));
	            ?>
			 <P><FONT color="#939393"><?php $subforum->for_descrip  ?></FONT></P>
			 <P style="FONT-SIZE: 9pt">版主:
			 <?php foreach(explode(',',$subforum->for_banner) as $subbanner){ if ($subbanner !='') {

			 ?>
			 <A  href="username=<?php echo($subbanner) ?>"><STRONG><?php echo($subbanner) ?></STRONG></A>,

			 <?php }} ?>
			 </P>
			 </div>
			 <div class="item">34959</div>
			 <div class="item">246059</div>
			 <div class="itemlast"><A href="http://bbs.phpchina.com/redirect.php?tid=103527&goto=lastpost&sid=oiBEru#lastpost">session</A> <CITE>by <A href="http://bbs.phpchina.com/space.php?username=Fising&sid=oiBEru">Fising</A> - 2009-2-6 09:56</CITE> </div>
		 </div>
	    <?php
        }
        ?>
		<div style="font: 0px/0px sans-serif;clear: both;display: block"> </div>
	<?php } ?>
   </div>
<?php }
?>
</div>